<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/21
 * Time: 10:17
 */

namespace app\common\model;


use think\Db;
use think\Model;

class Video extends Model
{
    //视频浏览次数+1
    //视频路径
    public function videoOper($id){
        $this->where('id',$id)->setInc('count');
        $url = $this->where('id',$id)->value('videofile');
        return $url;
    }
}